Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /** |
||
27 | UserDB.prototype._insertUser = function(userId, userName, pattern, preQ, topicName){ |
||
28 | let infoDict = { |
||
29 | userName: userName, |
||
30 | userId: userId, |
||
31 | loggedIn: new Date().getTime(), |
||
32 | activities: [{ |
||
33 | pattern: pattern, |
||
34 | preQ: preQ, |
||
35 | ut: new Date().getTime(), |
||
36 | topic: topicName |
||
37 | }] |
||
38 | }; |
||
39 | this.mem.push(infoDict); |
||
40 | return this.mem; |
||
41 | }; |
||
42 | |||
61 | module.exports = UserDB; |